<!-- Left side column. contains the sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="header">管理</li>
            <li>
                <a href="/license">
                    <i class="iconfont license icon-license mr10"></i>证书管理
                </a>
            </li>

            {{if .IsAdmin}}
                <li>
                    <a href="/users/user">
                        <i class="iconfont lusers icon-users mr10"></i>用户管理
                    </a>
                </li>
            {{else}}

            {{end}}

        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
<script>
    var url = window.location.pathname;
    $('.sidebar-menu').find('a[href="'+url+'"]').parent().addClass('active');
</script>